//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-02A
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Grand Funk Railroad','Peace Concert Hall At The Peace Center - SC','Greenville, SC','Thursday','5/2/2024','7:30 PM','6274738','Grand-Funk-Railroad-5-2-2024'],['North Carolina Symphony: Star Wars' Return Of The Jedi In Concert - Film With Live Orchestra','Meymandi Concert Hall At Martin Marietta Center for the Performing Arts','Raleigh, NC','Thursday','5/2/2024','7:30 PM','5868570','North-Carolina-Symphony--Star-Wars--Return-Of-The-Jedi-In-Concert---Film-With-Live-Orchestra-5-2-2024'],['Wicked','Mortensen Hall at Bushnell Theatre','Hartford, CT','Thursday','5/2/2024','7:30 PM','6049361','Wicked-5-2-2024'],['Stomp','Diamonstein Concert Hall - CNU Ferguson Center for the Arts','Newport News, VA','Thursday','5/2/2024','7:30 PM','6135668','Stomp-5-2-2024'],['Girl From The North Country','Sarofim Hall - Hobby Center','Houston, TX','Thursday','5/2/2024','7:30 PM','5581028','Girl-From-The-North-Country-5-2-2024'],['EMO Orchestra: Escape The Fate','Charleston Music Hall','Charleston, SC','Thursday','5/2/2024','8:00 PM','6231200','EMO-Orchestra--Escape-The-Fate-5-2-2024'],['Houston Symphony: Fabien Gabel - Pines of Rome & Grieg's Piano Concerto','Jones Hall for the Performing Arts','Houston, TX','Thursday','5/2/2024','8:00 PM','5803184','Houston-Symphony--Fabien-Gabel---Pines-of-Rome---Grieg-s-Piano-Concerto-5-2-2024'],['Vikingur Olafsson','Segerstrom Center For The Arts - Renee and Henry Segerstrom Concert Hall','Costa Mesa, CA','Thursday','5/2/2024','8:00 PM','6274204','Vikingur-Olafsson-5-2-2024'],['Derek Hough','HEB Performance Hall At Tobin Center for the Performing Arts','San Antonio, TX','Friday','5/3/2024','7:00 PM','5688012','Derek-Hough-5-3-2024'],['David Sedaris','Dell Hall at Long Center For The Performing Arts','Austin, TX','Friday','5/3/2024','7:00 PM','5951617','David-Sedaris-5-3-2024']],'"All For The Hall"','https://www.ticketnetwork.com');